package org.jeecg.wechat.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description: 配件和分类实体类
 * @Author: cheng
 * @Date:   2023-07-23
 * @Version: V1.0
 */
@Data
@ApiModel(value="EquipAndType对象", description="配件和分类实体类")
@Accessors(chain = true)
public class EquipAndType implements Serializable {
    private static final long serialVersionUID = 1L;
    /**主键*/
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**父级节点*/
    @ApiModelProperty(value = "父级节点")
    private String pid;
    /**是否有子节点*/
    @ApiModelProperty(value = "是否有子节点")
    private String hasChild;
    /**名称*/
    @ApiModelProperty(value = "名称")
    private String name;
    /**描述*/
    @ApiModelProperty(value = "描述")
    private String content;
    @ApiModelProperty(value = "分类下设备数据")
    private List<Equip> equipList;
    @Data
    @Accessors(chain = true)
    public static class Equip{
        @ApiModelProperty(value = "主键")
        private String id;
        /**创建人*/
        @ApiModelProperty(value = "创建人")
        private String createBy;
        /**创建日期*/
        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建日期")
        private Date createTime;
        /**更新人*/
        @ApiModelProperty(value = "更新人")
        private String updateBy;
        /**更新日期*/
        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "更新日期")
        private Date updateTime;
        /**所属部门*/
        @ApiModelProperty(value = "所属部门")
        private String sysOrgCode;
        /**产品名称*/
        @ApiModelProperty(value = "产品名称")
        private String name;
        /**编号*/
        @ApiModelProperty(value = "编号")
        private String serialNo;
        /**货号*/
        @ApiModelProperty(value = "货号")
        private String artNo;
        /**产品型号*/
        @ApiModelProperty(value = "产品型号")
        private String proModel;
        /**产品重量*/
        @ApiModelProperty(value = "产品重量")
        private BigDecimal proWeight;
        /**产地*/
        @ApiModelProperty(value = "产地")
        private String producArea;
        /**产品尺寸*/
        @ApiModelProperty(value = "产品尺寸")
        private String proSize;
        /**用途*/
        @ApiModelProperty(value = "用途")
        private String useContent;
        /**进货价*/
        @ApiModelProperty(value = "进货价")
        private BigDecimal purchaseCost;
        /**出货价*/
        @Excel(name = "出货价", width = 15)
        @ApiModelProperty(value = "出货价")
        private BigDecimal unitCost;
        /**所属分类*/
        @ApiModelProperty(value = "所属分类")
        private String equipTypeId;
        /**质保期*/
        @ApiModelProperty(value = "质保期")
        private java.lang.Integer qualityPeriod;
        /**是否管理库存**/
        @Dict(dicCode = "is_stock")
        @ApiModelProperty(value = "库存管理")
        private Integer isStock;
        /**库存上限*/
        @ApiModelProperty(value = "库存上限")
        private java.lang.Integer upperLimit;
        /**库存下限*/
        @ApiModelProperty(value = "库存下限")
        private java.lang.Integer lowerLimit;
        /**设备图片*/
        @ApiModelProperty(value = "设备图片")
        private String imageUri;
    }
}

